home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / sysprof3.zip / PROFBATS < prev    next >
Text File  |  1989-02-09  |  3KB  |  92 lines

  1. PROFILER BATCH FILES (and other details) --
  2.  
  3. You can invoke PROFCTRL in any of the following ways: 
  4.  
  5.                       C> PROFCTRL STATUS
  6.                       C> PROFCTRL ON
  7.                       C> PROFCTRL OFF
  8.                       C> PROFCTRL ZERO
  9.                       C> PROFCTRL REPORT [output-filename]
  10.  
  11. Most of the PROFCTRL options correspond closely to the interrupt 60H services.  
  12. The output from the REPORT option will default to the printer if you omit the 
  13. output filename.  
  14.  
  15. Compiling, linking, and using the system profiler
  16.  
  17. SYS_PROF was assembled with MASM V5.0, and PROFCTRL was compiled with the 
  18. Microsoft C Compiler V5.1. Other versions may work equally well. 
  19. The first batch file will create the two executable files.
  20.  
  21. -----------------------------
  22.  
  23.                     MASM SYS_PROF.ASM;
  24.                     LINK SYS_PROF;
  25.                     EXE2BIN SYS_PROF.EXE SYS_PROF.COM
  26.                     CL PROFCTRL /c
  27.                     LINK PROFCTRL;
  28.  
  29.               Batch file to create SYS_PROF.COM and PROFCTRL.EXE
  30.  
  31. ----------------
  32.  
  33.  
  34. The simplest way to use the system profiler is in a batch file; the one shown 
  35. in Figure 3 was used to create the report in Figure 1. The installation code 
  36. in SYS_PROF prevents multiple copies from remaining resident, so you can 
  37. execute this type of batch file repeatedly with no harm. 
  38.  
  39. ---------------------
  40.  
  41.                     SYS_PROF
  42.                     PROFCTRL ZERO
  43.                     PROFCTRL ON
  44.                     chkdsk c:
  45.                     PROFCTRL OFF
  46.                     PROFCTRL REPORT chkdsk.rpt
  47.  
  48.                      Batch file used to generate Figure 1
  49.                      
  50. ---------------------
  51.  
  52.                     graphics
  53.                     break on
  54.                     SYS_PROF
  55.                     PROFCTRL ZERO
  56.                     PROFCTRL ON
  57.                     mndlbrot
  58.                     PROFCTRL OFF
  59.                     PROFCTRL REPORT break.rep
  60.  
  61.                         Batch file used for Example #1
  62.                  
  63. -----------------
  64.  
  65.                     graphics
  66.                     break off
  67.                     lptx -1 -o d:mndlbrot.out
  68.                     SYS_PROF
  69.                     PROFCTRL ZERO
  70.                     PROFCTRL ON
  71.                     mndlbrot
  72.                     lptx -1 -c
  73.                     copy d:mndlbrot.out a:
  74.                     PROFCTRL OFF
  75.                     PROFCTRL REPORT xt.rep
  76.  
  77.                         Batch file used for Example #3
  78.                    
  79.  
  80. -------------------
  81.  
  82.                     SYS_PROF
  83.                     PROFCTRL ZERO
  84.                     PROFCTRL ON
  85.                     transfer mndlbrot.out
  86.                     PROFCTRL OFF
  87.                     PROFCTRL REPORT transfer.rep
  88.  
  89.                         Batch file used for Example #4
  90.                                    
  91. -------------------
  92.